package com.chinacoal.hr.levelapi.client.fallback;

import com.chinacoal.hr.levelapi.client.LoginClient;
import com.chinacoal.hr.levelapi.client.response.Result;
import com.chinacoal.hr.levelapi.client.response.ResultCode;
import com.chinacoal.hr.levelapi.client.response.ResultGenerator;
import org.springframework.http.HttpHeaders;

import java.util.Map;

/**
 * Created by jinyabin on 2020/10/29.
 */
public class LoginClientFallback implements LoginClient {
    @Override
    public Map login() {
        return null;
    }

    @Override
    public Map userinfo() {
        return null;
    }

    @Override
    public Result user(HttpHeaders headers) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }
}
